<template>
<div class="page">
  <div class='nav'>
    <div class="input_view flex_ac" @click="$back() ">
      <van-icon class="ml6" name="arrow-left" size="26" color="#000"/>
      <div class="nav_title">认证</div>
    </div>
	</div>
	<div class="h50"></div>
	<div class="box">
		<div class="box_item">
			<div class="box_name">头像</div>
      <div v-if="form.avatar" class="img img_item">
        <img class="img"  :src="form.avatar" mode="aspectFit"/>
      </div>
      <div v-if="!form.avatar" class="img_plus">
      </div>
		</div>
		<div class="box_item">
			<div class="box_name">姓名</div>
			<input v-model="form.nickname" placeholder="请输入姓名" />
		</div>
		<div class="box_item">
			<div class="box_name">联系方式</div>
			<input v-model="form.mobile" placeholder="请输入联系方式" />
		</div>
	</div>
	<div class="box">
		<div class="box_item">
			<div class="box_name">单位名称</div>
			<input v-model="form.company_name" placeholder="请输入单位名称" />
		</div>
		<div class="box_item">
			<div class="box_name">单位地址</div>
      <input v-model="form.company_name" placeholder="请输入单位地址" />
		</div>
		<div class="box_item">
			<div class="box_name">职位</div>
			<input v-model="form.career" placeholder="请输入职位" />
		</div>
	</div>
  <div class="box">
		<div class="box_item">
			<div class="box_name">个人简介</div>
      <van-icon @click="isOpen1=!isOpen1" v-if="isOpen1" name="arrow-down" color="#333" size="18" />
      <van-icon @click="isOpen1=!isOpen1" v-else name="arrow-up" color="#333" size="18" />
		</div>
    <textarea v-if="isOpen1" v-model="form.company_name" placeholder="请输入个人简介" />
  </div>
  <div class="box">
		<div class="box_item">
			<div class="box_name">公司简介</div>
      <van-icon @click="isOpen2=!isOpen2" v-if="isOpen2" name="arrow-down" color="#333" size="18" />
      <van-icon @click="isOpen2=!isOpen2" v-else name="arrow-up" color="#333" size="18" />
		</div>
    <textarea v-if="isOpen2" v-model="form.company_name" placeholder="请输入公司简介" />
  </div>
  <div class="box">
		<div class="box_item">
			<div class="box_name">其他</div>
      <van-icon @click="isOpen3=!isOpen3" v-if="isOpen3" name="arrow-down" color="#333" size="18" />
      <van-icon @click="isOpen3=!isOpen3" v-else name="arrow-up" color="#333" size="18" />
		</div>
    <textarea v-if="isOpen3" v-model="form.company_name" placeholder="请输入其他内容" />
  </div>

	<div class="submit_btn" @click='submit'>
		提 交
	</div>
  <div class="h40"></div>
</div>
</template>

<script>
// import { } from '@/utils/api.js'
	export default {
		data() {
			return {
				form:{
					avatar:'',
					nickname:'',
					mobile:'',
					company_name:'',
					company_address:'',
					career:'',
					from:'app',
        },
        isOpen1: true,
        isOpen2: false,
        isOpen3: false,
			}
		},
		components:{
		},
		watch:{

		},
		methods: {
      submit() {
        
      }
		}
	}
</script>

<style scoped lang="scss">
.nav{
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
  height: 40px;
	background-color: rgba($color: #fff, $alpha: 1);
	z-index: 10;
	transition: all 0.5s;
}
textarea{
  width: calc(100% - 20px);
  height: 80px;
  border: none;
  padding: 10px;
}
.input_view{
	width: 100%;
  height: 100%;
	.nav_title{
		font-weight: 500;
		font-size: 18px;
		color: #000;
	}
}
.text_add{
	color:#EB7418;
	font-weight: 800;
	width: 100%;
	text-align: center;
}
.text_del{
	color:#000;
	font-weight: 800;
	width: 100%;
	text-align: center;
}
	
.box{
	background: #FFFFFF;
	border-radius: 3px;
	width:calc(100% - 20px);
	margin: 0 10px 10px;
	position: relative;
	.box_item{
		height:49px;
		border-bottom:1px solid #EEEDE9;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 12px;
		position: relative;
    input{
      border: none;
      font-size: 14px !important;
    }
		.input{
			text-align: left !important;
			width: 100% !important;
		}
		.right{
			margin-right: -5px;
		}
		.box_name{
			font-size: 16px;
			color: #000000;
		}
		.box_value{
			width: calc(100% - 75px);
			font-size: 14px;
			color: #666666;
			display: flex;
			flex-direction: row-reverse;
		}
		&:last-child{
			border-bottom:none
		}
		
		.img_item{
			background: #F7F7F7;
			color:#BFBFBF;
			display: flex;
			justify-content: center;
			align-items: center;
			overflow: hidden;
			border-radius: 18px;
			position: relative;
		}
		.img{
			width:35px;
			height:35px;
			border-radius: 18px;
			background: #F7F7F8;
			border: 1px solid rgba(0,0,0,0.04);
			overflow: hidden;
			position: relative;
			.img{
				width: 100%;
				background-color: rgba(0,0,0,.1);
			}
		}
		.avatar{
			width:35px;
			height:35px;
			border-radius: 18px;
		}
		.img_plus{
			width:35px;
			height:35px;
			border-radius: 18px;
			background: #F7F7F8;
			border: 1px solid rgba(0,0,0,0.04);
			
			position: relative;
			&::after{
				position: absolute;
				content:' ';
				height:20px;
				width:2px;
				border-radius: 1px;
				left: calc(50% - 1px);
				top: calc(50% - 10px);
				background: #888888;
			}
			&::before{
				position: absolute;
				content:' ';
				width:20px;
				height:2px;
				border-radius: 1px;
				top: calc(50% - 1px);
				left: calc(50% - 10px);
				background: #888888;
			}
		}
		
		input{
			width: calc(100% - 75px);
			font-weight: 400;
			font-size: 24px;
			color: #666666;
			// width:100%;
			text-align: right;
			height:100%;
		}
		.input1{
			font-size: 24px;
			color: #666666;
		}
	}
}
	
.page{
	width: 100%;
  height: 100%;
  overflow-y: auto;
	background: #F4F4F4;
}

.submit_btn{
	width: calc(100% - 24px);
	margin-left:12px;
	margin-top:50px;
	text-align: center;
	height: 44px;
	line-height: 44px;
  background: linear-gradient(-62deg, #EB7418, #F6A15F);
	box-shadow: 0px 1px 2px 1px rgba(203,204,213,0.69);
	border-radius: 22px;
	font-size: 18px;
	color: #FFFFFF;
}

</style>

